const mongoose = require('mongoose');

// const uri = 'mongodb://testuser:testpsw@localhost:27017/test';
const uri = 'mongodb://xsh:123456@localhost:27017/petshop';


mongoose.connect(uri, { useNewUrlParser: true, useUnifiedTopology: true })
    .then(() => console.log('MongoDB connected'))
    .catch(err => console.error('MongoDB connection error:', err));
